Imports System.Data.SqlClient
Public Class Permission
    Public Shared Function GetPermission() As DataTable
        Str = " SELECT PERMISSION_ID,EMPLOYEE_NAME=ENGLISH_NAME +' ( '+KHMER_NAME+' )',PERMISSION_DATE,PERMISSION_TYPE,REASON,NOTE,MODIFY_BY,ACTIVE FROM  VIEW_PERMISSION  WHERE ACTIVE=1 ORDER BY PERMISSION_ID ASC"

        Try


            Dim dataAdapter As SqlDataAdapter
            dataAdapter = New SqlDataAdapter(str, CType(Dbinterface.Connection, SqlConnection))
            Dim dataTable As DataTable = New DataTable()
            dataAdapter.Fill(dataTable)
            Return dataTable
        Catch ex As Exception
            MessageBox.Show(ex.ToString)
            Return Nothing
        End Try
    End Function

End Class